package com.atguigu.gulimall.product.service;

import com.atguigu.common.valid.AddValid;
import com.atguigu.gulimall.product.entity.BrandEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;

import javax.validation.constraints.NotBlank;
import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author xiaolin
 * @email 956704533@qq.com
 * @date 2020-06-08 22:10:40
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrand(Long brandId,String name);

    void updateCatelog(Long catId, String name);

    List<BrandEntity> getBrandsByCatId(Long catId);
}

